import { listAllByUser, updateRecords } from '@/services/totalnumberofclinicsApi';

export default {
  namespace: 'totalnumberofclinics',

  state: {},

  effects: {
    /**
     * 查询所有
     * @param payload
     * @param call
     * @param put
     * @returns {Generator<*, *, *>}
     */
    *listAllByUser({ payload }, { call, put }) {
      const response = yield call(listAllByUser, payload);
      return response;
    },

    /**
     * 更新
     * @param payload
     * @param call
     * @param put
     * @returns {Generator<*, *, *>}
     */
    *updateRecords({ payload }, { call, put }) {
      const response = yield call(updateRecords, payload);
      return response;
    },
  },

  reducers: {},
};
